<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    //rest参数  剩余参数
    function date(...args) {
        console.log(args)//数组 ['1','2','3',]
    }
    date('1','2','3')

    function date1(a,b,...args) {
        console.log(args)//数组 ['3','4']
    }
    date('1','2','3','4')
</script>
</body>
</html>